<?php
	
namespace Home\Model;
use Think\Model\ViewModel;	

/**
 * 问题模型
 */
class SearchModel extends ViewModel {
	public $table='answer';
	protected $viewFields=array(
		'answer'=>array('asid'=>'anasid','adopt','content'=>'ancontent','_type'=>'INNER'),
		'ask'=>array(
			'content'=>'ascontent','uid','time'=>'atime','answer','cid'=>'acid',
			'_on'=>'answer.asid=ask.asid'
			),
		'category'=>array('cname','_on'=>'category.cid=ask.cid')
	);
}

	
